package com.wl.mybootmybatis2.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {

  private Integer eno;
  private String ename;
  private String esex;
  private Double salary;
  private String pwd;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date bornDate;
  private Integer dno;

  public Emp(String ename, String esex, Double salary, String pwd, Date bornDate, Integer dno) {
    this.ename = ename;
    this.esex = esex;
    this.salary = salary;
    this.pwd = pwd;
    this.bornDate = bornDate;
    this.dno = dno;
  }
}
